import request from '@/utils/request'

export const getMonthCardAPI = (params) => {
  return request({ url: '/parking/card/list', params })
}

export const addCardAPI = (data) => {
  return request({
    url: '/parking/card',
    method: 'post',
    data
  })
}

export const feeCardAPI = (data) => {
  return request({
    url: '/parking/card/recharge',
    method: 'post',
    data
  })
}

export const editCardAPI = (data) => {
  return request({
    url: '/parking/card/edit',
    method: 'put',
    data
  })
}

export const delCarAPI = (data) => {
  return request({
    url: '/parking/card/' + data.ids,
    method: 'delete',
    data
  })
}
